package com.phiture.erp.sale.api.service;

import com.phiture.erp.sale.api.pojo.resp.ErpSaleOrderItemResp;
import com.phiture.erp.sale.api.pojo.resp.ErpSaleOrderResp;

import java.util.List;

public interface ErpSaleApi {

    public ErpSaleOrderItemResp getSaleOrderItemById(Long id);

    public int updateSaleOrderItem(ErpSaleOrderItemResp item);

    /**
     * 根据销售订单ID查询销售订单项
     *
     * @param orderId 销售订单ID
     * @return 销售订单项列表
     */
    public List<ErpSaleOrderItemResp> getSaleOrderItemsByOrderId(Long orderId);

    public ErpSaleOrderResp getSaleOrderById(Long id);

    public int updateSaleOrderMrpFlag(Long id, Integer mrpFlag);

    public int updateSaleOrderItemMrpFlag(Long id, Integer mrpFlag);
}
